package svc

import (
	"github.com/zeromicro/go-zero/zrpc"
	"zg2zy1/api/internal/config"
	"zg2zy1/zg2zy1rpc/zg2zy1rpcclient"
)

type ServiceContext struct {
	Config config.Config
	ZgyRpc zg2zy1rpcclient.Zg2zy1rpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config: c,
		ZgyRpc: zg2zy1rpcclient.NewZg2zy1rpc(zrpc.MustNewClient(c.ZgyRpc)),
	}
}
